* fileio.c (Fverify_visited_file_modtime): Don't read uninitialized st.st_size.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 10 Dec 2012 23:16:28 +0000 (15:16 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 10 Dec 2012 23:16:28 +0000 (15:16 -0800)
src/ChangeLog
src/fileio.c

index 96cbe7e02caba1003f282b8c0f1d55e7dfd780d0..3b32ad28e061cbf16eb0b0865f19c9e7bc8d0c20 100644 (file)
@@ -2,6 +2,7 @@
 
        * fileio.c (Fvisited_file_modtime): Return (-1 ...) for nonexistent
        files, fixing a regression from 24.2.
+       (Fverify_visited_file_modtime): Don't read uninitialized st.st_size.
 
 2012-12-08  Jan Djärv  <jan.h.d@swipnet.se>
 
index 49a6740d93a2e5f0f0cda9fb28e94da23a80e87e..7e1ba71c822c5c6add40b9bd3c50f5ebe32459ce 100644 (file)
@@ -5150,8 +5150,8 @@ See Info node `(elisp)Modification Time' for more details.  */)
                        ? sub_emacs_time (b->modtime, mtime)
                        : sub_emacs_time (mtime, b->modtime))),
               EMACS_TIME_LE (diff, make_emacs_time (1, 0)))))
-      && (st.st_size == b->modtime_size
-          || b->modtime_size < 0))
+      && (b->modtime_size < 0
+         || st.st_size == b->modtime_size))
     return Qt;
   return Qnil;
 }